Technical Q&A QD59
grayishTextOr and Mac OS 8.5


Q: Under Mac OS 8.5, text that is drawn using TextMode(grayishTextOr) is never actually drawn. What's wrong and what can I do to fix it?

A: Mac OS 8.5 doesn't properly check to see if the current port is a GrafPort or a CGrafPort. Gray text will draw correctly to a CGrafPort, but does not appear when drawn to an old GrafPort.

The best solution to this problem is to migrate your code to always use color windows and CGrafPorts.

However, you can simulate the gray text by painting over the text's area with a gray pattern in patBic mode.

[Dec 07 1998]


Developer Documentation | Technical Notes | Development Kits | Sample Code